1159 树的构建和遍历

给出后序遍历和中序遍历建树
根据要求输出

stoi 把字符串转化为数字,int 范围内
atoi 是把 const char* 转化为数字,也就是需要 string 后调用 c_str() 方法。